﻿package bdz.projects.lavender.doi.ui.core
{
	import bdz.common.model.AppEnvironment;
	import bdz.projects.lavender.doi.model.DOIConnector;
	
	import gs.easing.*;
	import gs.*;
	
	import flash.display.MovieClip;
	import flash.events.Event;
	
	/**
	 * ...
	 * @author ...
	 */
	public class DOICoreView extends MovieClip 
	{
		
		protected var env:AppEnvironment = AppEnvironment.getEnv();
		protected var dp:Array;
		protected var dsource:Object;
		protected var _inited:Boolean = false;
		
		function DOICoreView() {
			addEventListener(Event.ADDED_TO_STAGE, initializeComponent);
			addEventListener(Event.REMOVED_FROM_STAGE, cleanUpComponent);
		}
		protected function cleanUpComponent(evt:Event):void {
			
		}
		protected function initializeComponent(evt:Event):void {
			
			if (dp || dsource && !_inited) {
				_inited = true;
				renderComponent();
			}
		}
		protected function renderComponent():void {
			
		}
		public function set dataSource(ds:Object):void {
			dsource = ds;
		}
		public function get dataSource():Object {
			return dsource;
		}
		public function set dataProvider(arr:Array):void {
			dp = arr;
		}
		public function get dataProvider():Array {
			return dp;
		}
		
	}
	
}